﻿
{% extends "Common/AdminBase.html" %}

{% block Location %}
{% load filters %} 

<script>
//设置当前导航
Nav_Page="Index";
</script>

{% endblock %}


{% block content %}


<div class="contentcontainer">
            <div class="headings">
                <h2>修改个人信息</h2>
            </div>
            <div class="contentbox">
            	<form action="#" AjaxForm="/AdminMain/Home/EditNickName/"  AjaxVerify=''  AjaxSuccess="onRefresh">
            		<p>
                        <label for="textfield"><strong>昵称:</strong></label>
                        <input type="text" maxlength="10" id="textfield" class="inputbox" name="NickName"  value="{{Model.userinfo.NickName}}">  <br>
                        <span class="smltxt">(状态正常)

</span>
                    </p>
                    <p>
                        <label for="errorbox"><span ><strong>创建时间:</strong></span></label>
                        <input type="text" disabled id="errorbox" class="inputbox" value='{{Model.userinfo.CreateTtime|date:"Y-m-d"}}'><br>
                       
                    </p>
                    <p>
                        <label for="correctbox"><span ><strong>权限等级:</strong></span></label>
                        <input type="text" disabled= id="correctbox" class="inputbox" value="{{Model.userinfo.PurviewTeamID.Title}}"> 
                    </p>
                   
                      <input type="submit" value="提  交" class="btn"> 
                </form>         
			
             
            </div>
        </div>
        <div class="status info">
        	<p><img src="/site_media/admin/img/icons/icon_info.png" alt="Information"><span>说明:</span>您可以为本账号添加多个登录账号
      
        	</p>
        </div>
        
    
        
                <div style="clear: both;"></div>
        
        <div class="contentcontainer">
            <div class="headings altheading">
                <h2>我的登录账号</h2>
            </div>
            <div class="contentbox">
            	<table width="100%">
                	<thead>
                    	<tr>
                        	<th>类别</th>
                            <th>登录账号</th>
							<th>状态</th>
                            <th>操作</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                      {% for info in Model.List  %}
                         <tr >
                        	<td>{{info.Types|EnumTxt:info.TypesEnum}}</td>
                            <td>{{info.Account}}</td>
							 	<td>{{info.State|EnumTxt:info.StateEnum}}</td>
                            <td>
                            	{% ifequal info.Types 0 %}
                            	<a href="#" dataType="DialogAjax" dataval="/AdminMain/Home/ChangePassword/?Rowid={{info.Rowid}}" alt="修改密码"  ><img src="/site_media/admin/img/icons/icon_edit.png" alt="Edit"></a>
								    {% endifequal %}
								
								{% if info.State %}
								
								<a href="#" dataType="confimsubmit" datareturn="onRefresh"   dataval="/AdminMain/Home/UnApproveLogin/?Rowid={{info.Rowid}}" dataTip="你确定[停用]该账号?"><img src="/site_media/admin/img/icons/icon_unapprove.png" alt="Unapprove"></a>
                            	
								{% else %}
                                <a href="#" dataType="confimsubmit" datareturn="onRefresh"   dataval="/AdminMain/Home/ApproveLogin/?Rowid={{info.Rowid}}" dataTip="你确定[启用]该账号?"><img src="/site_media/admin/img/icons/icon_approve.png" alt="Approve"></a>
                                {% endif %}
						    </td>
                        </tr>
                         {% endfor  %}
                        <script>
                        	function onRefresh()
							{
								$.tips("操作成功",null,3,function(){
									window.location=window.location;
								});
							}
                        </script>
						
						
                    </tbody>
                </table>
              <div class="extrabottom">
                	
                    <div class="bulkactions">
                    	
                        <input dataType="DialogAjax" dataval="/AdminMain/Home/AddLogin/" alt="添加登录账号" type="button" value="添加登录账号" class="btn">
                    </div>
                </div>
    
            </div>
            
        </div>
        
        
{% endblock %}